package com.zxq.uart.controller;

import com.zxq.uart.frame.decoder._28SetFloatPowerAndTimeResult;
import com.zxq.uart.frame.encoder._28SetFloatPowerAndTimeCmd;
import com.zxq.uart.result.ResultVO;
import com.zxq.uart.service.impl.PlatformExchange;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class _28SetFloatPowerAndTimeController extends PlatformExchange<_28SetFloatPowerAndTimeCmd, _28SetFloatPowerAndTimeResult> {

    @Override
    public Integer getCmd() {
        return 0x28;
    }

    @PostMapping("exchange/28")
    @Override
    public ResultVO<_28SetFloatPowerAndTimeResult> exchange(@RequestBody _28SetFloatPowerAndTimeCmd order) {
        return super.exchange(order);
    }

    @Override
    public _28SetFloatPowerAndTimeResult getResult() {
        _28SetFloatPowerAndTimeResult setFloatPowerAndTimeResult  = new _28SetFloatPowerAndTimeResult();
        return setFloatPowerAndTimeResult;
    }

}
